package com.zhanghe.im.console;

import com.zhanghe.im.request.ListGroupMemberRequestPacket;
import com.zhanghe.im.request.QuitGroupRequestPacket;
import io.netty.channel.Channel;

import java.util.Scanner;

public class ListGroupMemberConsoleCommand implements ConsoleCommand {

    @Override
    public void exec(Scanner scanner, Channel channel) {
        System.out.print("输入要查看的groupId:");
        String groupId = scanner.next();
        ListGroupMemberRequestPacket listGroupMemberRequestPacket = new ListGroupMemberRequestPacket();
        listGroupMemberRequestPacket.setGroupId(groupId);
        channel.writeAndFlush(listGroupMemberRequestPacket);
    }
}
